npm报错:These dependencies were not found:* canvas in ./node 您所在的位置:网站首页 vue启动报错These dependencies were not found npm报错:These dependencies were not found:* canvas in ./node

npm报错:These dependencies were not found:* canvas in ./node

2024-05-18 22:08| 来源: 网络整理| 查看: 265

npm报错:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d 3月前 作者:宴玖 分类:Toy博客 阅读(33) 违法举报

这篇具有很好参考价值的文章主要介绍了npm报错:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

npm 报错:

These dependencies were not found:

* canvas in ./node_modules/pdfh5/js/pdf.js * dommatrix/dist/dommatrix.js in ./node_modules/pdfh5/js/pdf.js * web-streams-polyfill/dist/ponyfill.js in ./node_modules/pdfh5/js/pdf.worker.js

To install them, you can run: npm install --save canvas dommatrix/dist/dommatrix.js web-streams-polyfill/dist/ponyfill.js

npm报错:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d,npm,pdf,javascript,前端,node.js

不能直接执行他给的命令,那样会报新的错误

第一步先执行:

npm install [email protected] --ignore-scripts

只执行npm install canvas会报新的错误

第二步执行:

npm install --save dommatrix

第三步执行:

npm install --save web-streams-polyfill

然后就可以运行成功啦

我的node和npm版本如下:文章来源:https://www.toymoban.com/news/detail-751955.html

npm报错:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d,npm,pdf,javascript,前端,node.js文章来源地址https://www.toymoban.com/news/detail-751955.html

到了这里,关于npm报错:These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/d的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

分享到: 领支付宝红包 赞助服务器费用


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有